home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / Re table size < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: table size
  2. Sent:        4/2/96 5:49 PM
  3. Received:    4/2/96 6:01 PM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I'm working on a part that goes out to our native data sets
  9. >and presents the data in tabular format.  The data sets that
  10. >I read can have millions of observations.  The problem comes
  11. >in in my frame's AdjustSubViews method.  I get the content 
  12. >view and then need to call the view's SetExtent method to
  13. >indicate the size of the table.  The extent size takes a
  14. >FW_CPoint to indicate maximum width and height of the table, and
  15. >the point uses FW_CFixed to hold each value.  I believe that
  16. >the maximum value a FW_CFixed value can hold is the maximum
  17. >size representable by a signed short (32767).  So how do I 
  18. >indicate a table much larger than this?  I assume if I have
  19. >a 3 million oberservation table, and each row is 18 pixels
  20. >high, I would need to indicate a value of 54 million.  How
  21. >do I set the extent of the table?
  22. >
  23. >Thanks,
  24. >Brian Hess
  25. >SAS Institute Inc.
  26.  
  27. We do not directly support views longer than 32767 pixels in ODF. This is 
  28. something we will be supporting in the future.
  29.  
  30. They are two solutions to your problem:
  31.  
  32. 1) The first one is a little tricky and could be challenging to implement 
  33. (with or without ODF). A fixed number is in fact a long (16.16). You 
  34. could decide to use 24.8 or 32.0 instead of 16.16 giving you a larger 
  35. range. Kurt Piersol wrote an article in the Develop Magazine a year or so 
  36. ago on the subject. Check it out. Future releases of ODF will implement 
  37. something like that using the ODF FW_CMapping class.
  38.  
  39. 2) The second one is to do the same thing you were doing before with just 
  40. plain Toolbox calls (remember Quickdraw is only using 16 bits). Leave the 
  41. extent the size of the frame and attached the position of the thumb in 
  42. the scrollbar to the top cell. Scroll your data inside the view instead 
  43. of scrolling the view. This second solution should be easier to implement 
  44. with our next release (ODF Release 1) than with d11.
  45.  
  46.  
  47.  
  48. .......................................................................
  49.  Henri Lamiraux                                      lamiraux@apple.com
  50.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  51. .......................................................................
  52.  
  53.  
  54.